//
// Created by dong on 2025/10/21.
//

#ifndef BASEC_SEDIT_H
#define BASEC_SEDIT_H
#include "demo101.h"
#include "SWidget.h"

class SEdit:public Swidget
{
public:
    SEdit(int x =0,int y = 0);
    void paintEvent(SDL_Event* msg) override;
    void mousePressEvent(SDL_Event* msg) override;
    void inputEvent(SDL_Event* msg) override;
    void editEvent(SDL_Event* msg) override;
    void keyDownEvent(SDL_Event* msg) override;
protected:
    string m_input;
    bool isInput;
    bool isEdit;
};


#endif //BASEC_SEDIT_H